package com.ruoyi.order.mapper;

import com.ruoyi.order.domain.ShopOrderInfo;

import java.util.List;

/**
 * 订单Mapper接口
 * 
 * @author ruoyi
 * @date 2021-12-03
 */
public interface ShopOrderInfoMapper 
{
    /**
     * 用户连表
     */
//    public List<ShopOrderInfo> shopUser(ShopOrderInfo shopOrderInfo);


    /**
     * 查询订单
     * 
     * @param orderNo 订单主键
     * @return 订单
     */
    public ShopOrderInfo selectShopOrderInfoByOrderNo(String orderNo);

    /**
     * 查询订单列表
     * 
     * @param shopOrderInfo 订单
     * @return 订单集合
     */
    public List<ShopOrderInfo> selectShopOrderInfoList(ShopOrderInfo shopOrderInfo);

    /**
     * 新增订单
     * 
     * @param shopOrderInfo 订单
     * @return 结果
     */
    public int insertShopOrderInfo(ShopOrderInfo shopOrderInfo);

    /**
     * 修改订单
     * 
     * @param shopOrderInfo 订单
     * @return 结果
     */
    public int updateShopOrderInfo(ShopOrderInfo shopOrderInfo);

    /**
     * 删除订单
     * 
     * @param orderNo 订单主键
     * @return 结果
     */
    public int deleteShopOrderInfoByOrderNo(String orderNo);

    /**
     * 批量删除订单
     * 
     * @param orderNos 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopOrderInfoByOrderNos(String[] orderNos);
}
